package OT.shoufouni.serverThreads;

import android.util.Log;

import OT.shoufouni.gpsMaps.Map;


public class serverUpdateFriendsLocationQuaryThread extends Thread {
private final Map callerActivity;
   private final String emailText;
  
   public serverUpdateFriendsLocationQuaryThread(Map callerActivity, String email) {
	   this.callerActivity = callerActivity;
	   this.emailText = email;
    }
   public void run() {
	   // update the friends location
	   while (true){
		   try {
			sleep(100000);
		} catch (InterruptedException e) {
			Log.e("serverUpdateFriendsLocationQuaryThread ",e.getMessage());
		}
		serverLocateFriendsQuaryThread locateFriends = new serverLocateFriendsQuaryThread(callerActivity, emailText);
		locateFriends.start();
	   }
   }
}
